package com.sikaryofficial.common.core.utils;

import com.sikaryofficial.common.core.constant.HttpStatus;
import com.sikaryofficial.common.core.web.domain.PageResult;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 结果封装工具类
 * @date : 2023/11/07 12:50
 */
public class PageUtil {

    /**
     * 返回成功数据
     *
     * @return 成功消息
     */
    public static <T> PageResult success(List<T> rows, long total) {
        return PageResult.success(HttpStatus.SUCCESS, "Operation successful.", rows, total);
    }
}
